package pe.org.cnl.congreso.dao.impl;

import java.util.List;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import pe.org.cnl.congreso.dao.EstatusPagoDAO;
import pe.org.cnl.congreso.model.Estatuspago;

@Repository
public class EstatusPagoImpl extends HibernateDaoSupport implements EstatusPagoDAO{

	  /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired
		public EstatusPagoImpl(SessionFactory sessionFactory){
			setHibernateTemplate( new HibernateTemplate(sessionFactory));
		}

	@SuppressWarnings("unchecked")
	@Override
	public List<Estatuspago> listar() {
		return this.getHibernateTemplate().find("from Estatuspago");
	}
	  
	  
}
